#ifndef __COMPRESSORCONTROL_H__
#define __COMPRESSORCONTROL_H__
#include "stm32f1xx.h"

#define FORCED_COOL 1
#define NOT_FORCED_COOL 0
#define WAIT_FORCED_COOL 2

#define SEL_COMPRESSOR 0
#define SEL_VALVE 1

#define COMPRESSOR_STATUS_WAIT      0
#define COMPRESSOR_STATUS_START     1
#define COMPRESSOR_STATUS_RUN       2
#define COMPRESSOR_STATUS_STOP      3


#define START_CONTROL   1
#define STOP_CONTROL   0
#define COMPRESSOR_CONTROL_STOP 0

#define DUTY_CONTROL 1
void JD_CompressorAction(void);
void JD_CompressorControl(s16 temp);
extern s16 JD_GetTempSetpoint(void);
extern s16 JD_GetTempDev(void);
u8 JD_GetForcedCoolCommand(void);
extern void JD_CoolControl(void);
extern void JD_ContinueCoolControl(void);
void JD_DutyCycleRun(void);
extern void SetCompressorOn(void);
extern void SetCompressorOff(void);
void JD_CompressorStatus(u8 Command);
void JD_CascadedControl(void);
void JD_OutDIFaultRun(void);
extern u8 GetDutyControl(void);


#endif
